home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -in_the_mag- / reader_requests / wild / appunti / fileformat.txt < prev    next >
Text File  |  2000-02-23  |  969b  |  56 lines

  1. DESIGN DEL FORMATO FILES DI WILD.
  2.  
  3. Intanto: WILD carica delle Scenes, con dentro tutto l'occorrente.
  4. Poi: il primo formato che uso (forse anche l'unico) sarà un tipo simile all'IFF.
  5.  
  6. Ci dovrà essere un chunk che definisce la struttura della scene,
  7. e poi tutti chunks descriveranno il resto.
  8.  
  9. Dovrà essere splittabile in più files.
  10.  
  11. Mi serve un concetto di chunks figli.
  12.  
  13. esempio:
  14. ROOT
  15.     SCENE
  16.         ARENA
  17.             ALIEN
  18.                 SECTOR
  19.                     NEBULA
  20.                     WIRE
  21.                     SHELL
  22.                 SECTOR    
  23.                     NEBULA
  24.                     WIRE
  25.                     SHELL
  26.             ALIEN
  27.                 SECTOR
  28.                     ...
  29.         ARENA
  30.             ...
  31. EOF
  32.  
  33. Struttura Chunk:
  34.  
  35.     KEY.l
  36.     SIZE.l    (including childs, so ROOT will have size=FILESIZE-chunkheader)
  37.     DATA.l    (size of data in the chunky before the first child chunk)
  38.     CHILDS.l (number of childs of this chunk)
  39.  
  40. Chunks: (indicated by keys)
  41.  
  42. WILD    The header chunk, also file identifier
  43.  
  44. LINK    Special chunk !!!
  45.     In the data you will have a relative filename.
  46.     It will be inserted here like if it was a single file.
  47.     
  48.     
  49.     
  50.     
  51.     
  52.  
  53.  
  54.  
  55.  
  56.